﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace GnProjectAssist.Option
{
    public class GnOptionCreator : GnOption
    {
        public class ClassAddinFilePath : GnOptionElement
        {            
            public static ClassAddinFilePath Instance
            {
                get { return GnToolMain.GnTSingleton<ClassAddinFilePath>.Instance; }
            }

            System.String mClassAddinFilePath = null;
			private ClassAddinFilePath() : base( "ClassAddinFilePath" )
			{
			}
			

			public override bool SaveAction( XmlWriter xml )
            {
				xml.WriteStartElement( ElementName );
				xml.writer
				xml.WriteEndElement();
                return true;
            }

			public override bool LoadAction( XmlReader xml )
            {
                return true;
            }
        }

        public class ProjectAddinFilePath : GnOptionElement
        {            
            public static ProjectAddinFilePath Instance
            {
                get { return GnToolMain.GnTSingleton<ProjectAddinFilePath>.Instance; }
            }

            String mProjectAddinFilePath = null;
			private ProjectAddinFilePath() : base( "ProjectAddinFilePath" )
            { }

			public override bool SaveAction( XmlWriter xml )
            {
				xml
                return true;
            }

			public override bool LoadAction( XmlReader xml )
			{
				return true;
			}
        }

		public GnOptionCreator( String optionName = "" ) : base( optionName )
        {
        }

        protected override void AddElement()
        {
			Elements.Add( ClassAddinFilePath.Instance.ElementName, ClassAddinFilePath.Instance );
			Elements.Add( ClassAddinFilePath.Instance.ElementName, ProjectAddinFilePath.Instance );
        }

        public override void LoadOption( XmlReader reader )
        {

        }

        public override void SaveOption( XmlReader reader )
        {
        }
    }
}
